﻿
using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
///// <summary>
///// 生产工单
///// </summary>
namespace iMES.Entity.DomainModels
{

    [Entity(TableCnName = "生产单表", TableName = "ProductionOrdere_ss")]

    public partial class ProductionOrdere_ss:SysEntity
    {
        // 主键（自增或 GUID，根据实际需求）  

        /// <summary>
        /// /生产工单主键
        /// </summary> 
        [Key]
        [Display(Name = "生产单表主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Id { get; set; }
        /// <summary>
        /// 生产单号，如 PO-2024-001
        /// </summary> 
        [Display(Name = "生产单号")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string OrderNo { get; set; }
        /// <summary>
        /// 生产主题，如 智能手机外壳设计变更
        /// </summary> 
        [Display(Name = "生产主题")]
        [MaxLength(200)]
        [Column(TypeName = "varchar(200)")]
        [Editable(true)]
        public string Subject { get; set; }
        /// <summary>
        /// 单据日期，如 2024-06-01
        /// </summary> 
        [Display(Name = "单据日期")]
        [MaxLength(50)]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime DocumentDate { get; set; }
        /// <summary>
        /// 负责人，如 张伟
        /// </summary> 
        [Display(Name = "负责人")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string ResponsiblePerson { get; set; }
        /// <summary>
        /// 所在部门，如 设计部 
        /// </summary> 
        [Display(Name = "所在部门")] 
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string Department { get; set; }
        /// <summary>
        /// 生产部门，如 生产部等5个部
        /// </summary> 
        [Display(Name = "生产部门")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string ProductionDept { get; set; }


    }
}
